package com.three.crm.adapter;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.three.crm.R;
import com.three.crm.bean.TaskBean;

import java.util.List;

public class TaskListAdapter extends BaseQuickAdapter<TaskBean, BaseViewHolder> {

    public TaskListAdapter(@Nullable List<TaskBean> data) {
        super(R.layout.item_list_task,data);
    }

    public TaskListAdapter() {
        super(R.layout.item_list_task);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, TaskBean item) {
        helper.setText(R.id.tv_company,item.getTitle())
                .setText(R.id.tv_time, item.getCtime());
    }
}
